package order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feign.utils.R;
import order.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import order.vo.submitOrder.SubmitOrderVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author panghu
 * @description 针对表【oms_order(订单)】的数据库操作Service
 * @createDate 2023-03-04 21:01:40
 */
public interface OrderService extends IService<Order> {

    Page<Map<String, Object>> getOrderListWithPage(Integer page, Integer limit,HttpServletRequest request);

    /**
     * 提交订单
     *
     * @param submitOrderVo
     * @param tradeNo
     * @return
     */
    R submitOrder(SubmitOrderVo submitOrderVo, String tradeNo, HttpServletRequest request);

    /**
     * 删除订单
     * @param orderId
     */
    void delOrderById(Long orderId);
}
